package com.example.demo.study.proxy.staticproxy;

/**
 * 类之间关系的--关联关系
 */
public class Secretary implements IWork{
    private Leader leader;

    Secretary(Leader leader)
    {
        this.leader=leader;
    }

    @Override
    public void meeting() {
        System.out.println("秘书先给老板准备材料");
        leader.meeting();
    }

    @Override
    public int evaluate(String name) {
        return leader.evaluate(name);
    }
}
